<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="/resources/css/xtheme-gray.css" />
        <link rel="stylesheet" type="text/css" href="/resources/css/style.css" />
        <link rel="stylesheet" type="text/css" href="/resources/js/ux/css/Spinner.css" />
        <script type="text/javascript">
            var torque = {
                debug: false,
                urls: {
					root: '',
					downloads: '/data/',
                },
                client: {
                    slug: 'deluge',
                    name: 'Deluge',
                    version: '1.8'
                },
                version: {
                    name: 'crank',
                    number: '2.0'
                },
				is_staff: {{is_staff|lower}}
            }
        </script>
        <script type="text/javascript" src="/resources/js/jquery.js"></script>
	<script type="text/javascript" src="/resources/js/jquery-blockui.js"></script>
        <script type="text/javascript" src="/resources/js/adapters/ext/ext-base-debug.js"></script>
        <script type="text/javascript" src="/resources/js/ext-all-debug.js"></script>
        <script type="text/javascript" src="/resources/js/ux/SpinnerField.js"></script>
        <script type="text/javascript" src="/resources/js/ux/Spinner.js"></script>
		<script type="text/javascript" src="/resources/js/torque/torque-debug.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
				torque.initialize();
				/* You can try and force this through if your not staff, but it wont work 
				as all the JSON commands will fail unless your logged in as administrator.
				This just makes it so the user (you) doesn't get errors. */
				if(!torque.is_staff) {
                    torque.panels['bottom'].remove(torque.panels['torrent.logs']);
                    //torque.panels['torrent.logs'].destroy();
                    //torque.panel('center').remove(torque.panel('center'));
                    //torque.panel('client').destroy()
				}
            });
        </script>
        <title>Torque</title>
    </head>
    <body></body>
	<div id="details">
		<table width="100%" border="0" cellpadding="2" cellspacing="5">
			<tr>
				<th>Hash</th><td id="details_hash"></td><th>Seeders</th><td id="details_num_seeds"></td>
			</tr>
			<tr>
				<th>Time Added</th><td id="details_time_added"></td><th>Peers</th><td id="details_num_peers"></td>
			</tr>
			<tr>
				<th>Seed Time</th><td id="details_seeding_time"></td><th>Active Time</th><td id="details_active_time"></td>
			</tr>
			<tr>
				<th>Next Announce</th><td id="details_next_announce"></td><th>Pieces</th><td id="details_num_pieces"></td>
			</tr>
			<tr>
				<th>Tracker</th><td id="details_tracker_host"></td><th>Status</th><td id="details_tracker_status"></td>
			</tr>
		</table>
	</div>
</html>
